package com.yzt.zhuju.rongyun;

import com.yzt.zhuju.event.BaseBusEvent;
import com.yzt.zhuju.network.entity.chatroom.ChatRoomChatMessage;
import com.yzt.zhuju.network.entity.chatroom.ChatRoomGiftDetail;
import com.yzt.zhuju.network.entity.gift.ChatRoomRewardData;

/**
 * author : bob
 * date   : 2022/12/2
 * desc   :
 */
public class ChatRoomMsgBean extends BaseBusEvent {

    private int type;
    private int msgId;
    private String text;// 文本
    private ChatRoomChatMessage mChatRoomChatMessage;
    private ChatRoomGiftDetail mChatRoomGiftDetail;
    private ChatRoomRewardData chatRoomRewardData;

    private int gameResult;//摇骰子

    public ChatRoomRewardData getChatRoomRewardData() {
        return chatRoomRewardData;
    }

    public void setChatRoomRewardData(ChatRoomRewardData chatRoomRewardData) {
        this.chatRoomRewardData = chatRoomRewardData;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getMsgId() {
        return msgId;
    }

    public void setMsgId(int msgId) {
        this.msgId = msgId;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public ChatRoomChatMessage getChatRoomChatMessage() {
        return mChatRoomChatMessage;
    }

    public void setChatRoomChatMessage(ChatRoomChatMessage mChatRoomChatMessage) {
        this.mChatRoomChatMessage = mChatRoomChatMessage;
    }

    public ChatRoomChatMessage getmChatRoomChatMessage() {
        return mChatRoomChatMessage;
    }

    public void setmChatRoomChatMessage(ChatRoomChatMessage mChatRoomChatMessage) {
        this.mChatRoomChatMessage = mChatRoomChatMessage;
    }

    public int getGameResult() {
        return gameResult;
    }

    public void setGameResult(int gameResult) {
        this.gameResult = gameResult;
    }

    public void setTextColor(String color) {
        if (mChatRoomChatMessage == null) {
            mChatRoomChatMessage = new ChatRoomChatMessage();
        }
        mChatRoomChatMessage.setTextColor(color);
    }

    public void setChatRoomGiftDetail(ChatRoomGiftDetail mChatRoomGiftDetail) {
        this.mChatRoomGiftDetail = mChatRoomGiftDetail;
    }

    public ChatRoomGiftDetail getChatRoomGiftDetail() {
        return this.mChatRoomGiftDetail;
    }

    public ChatRoomGiftDetail getmChatRoomGiftDetail() {
        return mChatRoomGiftDetail;
    }

    public void setmChatRoomGiftDetail(ChatRoomGiftDetail mChatRoomGiftDetail) {
        this.mChatRoomGiftDetail = mChatRoomGiftDetail;
    }

    @Override
    public String toString() {
        return "ChatRoomMsgBean{" +
                "type=" + type +
                ", msgId=" + msgId +
                ", text='" + text + '\'' +
                ", mChatRoomChatMessage=" + mChatRoomChatMessage +
                ", mChatRoomGiftDetail=" + mChatRoomGiftDetail +
                ", chatRoomRewardData=" + chatRoomRewardData +
                ", gameResult=" + gameResult +
                '}';
    }
}

